import { WeaTools } from 'ecCom';

//获取基本信息condition
export const getBrowserInfo = params => {
    return WeaTools.callApi('/api/workflow/newReport/getBrowserInfo', 'GET', params);
};
//获取step2 FormFields
export const getFormFields = params => {
    return WeaTools.callApi('/api/workflow/newReport/getFormFields', 'GET', params);
};
//获取step3 getFunctionList
export const getFunctionList = params => {
    return WeaTools.callApi('/api/workflow/newReport/getFunctionList', 'GET', params);
};
//编辑 getReportInfo
export const getReportInfo = params => {
    return WeaTools.callApi('/api/workflow/newReport/getReportInfo', 'GET', params);
};
//保存基本信息
export const saveReportBase = params => {
    return WeaTools.callApi('/api/workflow/newReport/saveReportBase', 'POST', params);
};
//保存表单字段
export const saveReportField = params => {
    return WeaTools.callApi('/api/workflow/newReport/saveReportField', 'POST', params);
};
//保存排序字段
export const saveReportSortField = params => {
    return WeaTools.callApi('/api/workflow/newReport/saveReportSortField', 'POST', params);
};
//保存公式
export const saveReportFormula = params => {
    return WeaTools.callApi('/api/workflow/newReport/saveReportFormula', 'POST', params);
};
//获取报表排序字段
export const getReportOrderByFields = params => {
    return WeaTools.callApi('/api/workflow/newReport/getReportOrderByFields', 'GET', params);
};
//获取流程表单信息
export const getFormInfo = params => {
    return WeaTools.callApi('/api/workflow/newReport/getFormInfo', 'GET', params);
};

